#include <iostream>
using namespace std;

/**
 * 运算符重载：：二元运算符重载
*/

class Test{
    public:
        int num = 10;

        Test operator+(const Test t){
            Test newt;
            newt.num = this->num + t.num;
            return newt;
        };
};

int main(){
    Test t1;
    Test t2;

    Test t3 = t1 + t2;

    // t3.num:20
    cout << "t3.num:" << t3.num << endl;
}